package color.koitq.picker.adapter;

import android.graphics.Color;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import color.koitq.picker.R;

public class Tab4SubAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public Tab4SubAdapter() {
        super(R.layout.item_tab4_sub);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, String s) {
        baseViewHolder.setBackgroundColor(R.id.view, Color.parseColor(s));
    }
}
